package com.bailun91.auth.service;

import com.bailun91.auth.dto.UserDto;
import com.bailun91.auth.entity.User;

import java.util.List;

public interface UserService {

    UserDto findAllUserInfoByUsername(String userName);

    User findByUsername(String username);

    User findById(int id);

    /**
     * 查询当前在线用户
     * @return
     */
    List<User> findAllOnlineUser();

    /**
     * 通过userId 踢人
     * @param userId
     */
    void kikoutUserByUserId(Integer userId);


    /**
     * 修改密码
     */
    boolean ChangePassword(Integer userId, String oldPassword,String newPassword);
}
